package com.learn.search.service;

import com.learn.eduapi.entity.Course;
import com.learn.eduapi.entity.PageEntity;

import java.util.List;
import java.util.Map;

public interface ICourseService {
    String INDEX_NAME = "course";

    List<Course> initCourseIndex();

    void saveOrUpdate(Course course);

    void removeById(Long id);

    List<Course> searchByCourseName(String courseName);

    PageEntity<Course> searchCoursePage(Map<String, String> map);
}
